package com.ruoyi.marry.service.impl;

import com.ruoyi.marry.mapper.CommCountMapper;
import com.ruoyi.marry.service.ICommCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Author: lb
 * @Date: 2021/12/15 11:33
 * @desc： 数据统计
 */
@Service
public class CommCountServiceImpl implements ICommCountService {
    @Autowired
    private CommCountMapper commCountMapper;

    /**
     * 获取首页统计数据（恋人数、用户总数、留言总数、点赞总数）
     *
     * @return
     */
    @Override
    public Map<String, Object> CommCountNumMap() {
        return commCountMapper.CommCountNumMap();
    }
}
